package Abstract1;

public abstract class A
{
    private String name;
    private int age;


    public A()
    {

    }
    //抽象方法：只要方法声明，没有方法体，用abstract修饰
public abstract void show();
    public void show1()
    {
        System.out.println("show1");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
